package br.com.maiscontrole.model;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
 * 
 * @author milton
 * 
 */
@Entity
@Table(name = "userconnection")
public class UserConnection implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long idf;

	@Basic
	private String uiFace;

	@Basic
	@Column(length = 255)
	private String userId;

	@Basic
	@Column(length = 255)
	private String providerId;

	@Basic
	@Column(length = 255)
	private String providerUserId;

	@Basic
	private Integer rank;

	@Basic
	@Column(length = 255)
	private String displayName;

	@Basic
	@Column(length = 512)
	private String profileUrl;

	@Basic
	@Column(length = 512)
	private String imageUrl;

	@Basic
	@Column(length = 255)
	private String acessToken;

	@Basic
	@Column(length = 255)
	private String secret;

	@Basic
	@Column(length = 255)
	private String refreshToken;

	@Basic
	private Long expiredTime;

	public UserConnection() {

	}

	public String getAcessToken() {
		return this.acessToken;
	}

	public String getDisplayName() {
		return this.displayName;
	}

	public Long getExpiredTime() {
		return this.expiredTime;
	}

	public Long getIdf() {
		return this.idf;
	}

	public String getImageUrl() {
		return this.imageUrl;
	}

	public String getProfileUrl() {
		return this.profileUrl;
	}

	public String getProviderId() {
		return this.providerId;
	}

	public String getProviderUserId() {
		return this.providerUserId;
	}

	public Integer getRank() {
		return this.rank;
	}

	public String getRefreshToken() {
		return this.refreshToken;
	}

	public String getSecret() {
		return this.secret;
	}

	public String getUiFace() {
		return this.uiFace;
	}

	public String getUserId() {
		return this.userId;
	}

	public void setAcessToken(String acessToken) {
		this.acessToken = acessToken;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	public void setExpiredTime(Long expiredTime) {
		this.expiredTime = expiredTime;
	}

	public void setIdf(Long idf) {
		this.idf = idf;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public void setProfileUrl(String profileUrl) {
		this.profileUrl = profileUrl;
	}

	public void setProviderId(String providerId) {
		this.providerId = providerId;
	}

	public void setProviderUserId(String providerUserId) {
		this.providerUserId = providerUserId;
	}

	public void setRank(Integer rank) {
		this.rank = rank;
	}

	public void setRefreshToken(String refreshToken) {
		this.refreshToken = refreshToken;
	}

	public void setSecret(String secret) {
		this.secret = secret;
	}

	public void setUiFace(String uiFace) {
		this.uiFace = uiFace;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

}
